package com.dgut.coal.dao;

import com.dgut.coal.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: Yang
 * @Description:
 * @Date: Created in 23:08 2019/9/27
 * @Modifued BY:
 */

@Repository
public interface UserDao {

     User findUser(@Param("username") String username, @Param("password") String password);

      User findById(Integer id);

      List<User> findAll();

      List<User> findByConditions(User u);

     void saveUser(User u);

     void deleteUser(Integer id);

     void updateUser(User u);

     void updatePwd(User u);

     int userCount();

     int roleCount();
}
